package piece;
/*
 * Justin Prentice
 * TCSS 305 (winter quarter)
 * Tetris program - TPiece
 */

/**
 * A class representing a TPiece on a tetris board.
 * @author Justin Prentice
 * @version 1.0
 */
public class TPiece extends AbstractPiece
{
  /**
   * An array representing all possible rotations of an TPiece.
   */
  private static boolean[][][] my_rotations = {{{false, false, false, false}, 
                                                {true, true, true, false}, 
                                                {false, true, false, false}, 
                                                {false, false, false, false}}, 
    
                                               {{false, true, false, false}, 
                                                {true, true, false, false}, 
                                                {false, true, false, false}, 
                                                {false, false, false, false}},
                                                  
                                               {{false, true, false, false}, 
                                                {true, true, true, false}, 
                                                {false, false, false, false}, 
                                                {false, false, false, false}},
                                                    
                                               {{false, true, false, false}, 
                                                {false, true, true, false}, 
                                                {false, true, false, false}, 
                                                {false, false, false, false}}};
  /**
   * Constructs an S piece at 0,0.
   */
  public TPiece()
  {
    super(0, 0, my_rotations);
  }
  
  /**
   * {@inheritDoc}
   */
  @Override
  public TPiece clone() throws CloneNotSupportedException
  {
    return (TPiece) super.clone();
  }
  
}
